import {Component}  from "react";

export default class  extends Component{
     
    static defaultProps = {
        name: '一个按钮',
        title:"这是一个标题"
      }

    constructor(props){
         super(props);
     }  

    render(){
        return(
            <div>
            <h1>{this.props.title}</h1>    
             <input type='text'></input>
             <button>{this.props.name}</button>
        </div>
        )
    }
}



